<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="right-s-box u-my-course_box">
    <section th:if="${#lists.isEmpty(dataMap['list'])}" class="no-data__wrap">
        <span class="no-data-ico"></span>
        <p class="mt20"><span class="c-666">抱歉，没有找到作业，请随时关注消息~~~</span></p>
    </section>
    <div th:if="!${#lists.isEmpty(dataMap['list'])}" class="u-my-course__wrap row u-my-course__list" style="margin-right: 0;">
        <div class="col-sm-4" th:each="personalTask : ${dataMap['list']}">
            <section class="media u-course-item u-my-course-item">
                <section class="ml5 pl10 mr5 pr10">
                    <section class="txtOf pt10 row">
                        <span class="fs12 c-999 mt10 u-h-time col-sm-9 hLh20" th:text="${#strings.substring(personalTask['createTime'],0,16)}"></span>
                        <div class="mt10 col-sm-3 hLh20">
                            <span th:if="${personalTask['marking']}==1 and ${personalTask['marked']}==1 or ${personalTask['marking']}==2 and ${personalTask['status']}!=2" data-placement="top" data-toggle="tooltip" data-original-title="未完成" class="fs12 c-danger u-h-status">未</span>
                            <span th:if="${personalTask['marking']}==1 and ${personalTask['marked']}==2 or ${personalTask['marking']}==2 and ${personalTask['status']}==2" data-placement="top" data-toggle="tooltip" data-original-title="已完成" class="fs12 c-info u-h-status">完</span>
                        </div>
                    </section>
                    <section class="hLh30 txtOf mt5">
                        <a href="javascript:void(0);" class="fs14 c-333" th:text="${personalTask['name']}"></a>
                    </section>
                    <section class="hLh20 txtOf mt5">
                        <span class="fs12 c-999" th:if="${personalTask['courseList']}!=null" th:each="course:${personalTask['courseList']}" th:text="${course['courseName']}"></span>
                    </section>
                    <section class="hLh20 txtOf mt20 row mr5">
                        <span class="fs12 c-999 col-sm-6">已提交/总人数</span>
                        <span class="fs12 c-999 col-sm-6 text-right" th:text="${personalTask['examPaper']['examNum']} + '/'+${personalTask['examPaper']['useCount']}">
                            </span>
                    </section>
                    <!--
                    <section class="hLh20 txtOf mt10 row mr5 submission">
                        <span class="fs12 c-999 col-sm-6">第一名提交人</span>
                        <span class="fs12 c-999 col-sm-6 text-right" th:title="${personalTask['user']}!=null ? ${personalTask['user']['nickname']}:'无'"    th:data-original-title="${personalTask['user']}!=null ? ${personalTask['user']['nickname']}:'无'"  data-toggle="tooltip" data-placement="top" >
                                <img class="lazy" th:if="${personalTask['user']}!= null and ${personalTask['user']}!= ''" th:attr="data-original=${personalTask['user']['avatar']}"/>
                            </span>
                    </section>
                    -->
                    <section class="clearfix mt5 pt10 pb10 text-center">
                        <a th:if="${personalTask['status']}==1 and ${personalTask['examTime']} == 0" th:href="@{/web/uc/task/getClassesTaskInfo?personalTaskId={taskId}(taskId=${personalTask['id']})}" target="_blank" class="hLh30">
                            <button class="btn btn-sm u-btn mb5" type="button">开始作业</button>
                        </a>
                        <a th:if="${personalTask['status']}==2 and ${personalTask['marking']}==1 and (${personalTask['marked']}==1 or ${personalTask['marked']}==0)" href="javascript:void(0);" class="hLh30">
                            <button class="btn btn-sm u-btn btn-default noAllowed mb5" type="button">批阅中</button>
                        </a>
                        <a th:if="${personalTask['status']}==2 and (${personalTask['marking']}==1 and ${personalTask['marked']}==2 or ${personalTask['marking']}==2)" th:href="@{/web/uc/task/getClassesTaskInfo?personalTaskId={taskId}(taskId=${personalTask['id']})}" target="_blank" class="hLh30">
                            <button class="btn btn-sm btn-success u-btn mb5" type="button">查看作业</button>
                        </a>
                        <a th:if="${personalTask['status']}==1 and ${personalTask['examTime']} > 0" th:href="@{/web/uc/task/getClassesTaskInfo?personalTaskId={taskId}(taskId=${personalTask['id']})}" target="_blank" class="hLh30">
                            <button class="btn btn-sm u-btn mb5" type="button">继续作业</button>
                        </a>
                    </section>
                </section>
            </section>
        </div>
    </div>
</div>
<div data-th-replace="layout/user/user-center-page"></div>
